package com.itheima.userservice.controller;

import com.itheima.userservice.feign.OrderFeign;
import io.swagger.annotations.Api;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

/**
 * 服务调用者
 */
@RestController
@RequestMapping("/testfeign")
@Api("Hello控制类")
public class FeignTestController {

    @Autowired
    OrderFeign feign;

    @PostMapping("/user")
    public void testFeign(@RequestBody HashMap map){
        Integer test = feign.test(map);
        System.out.println(test);
    }
}
